<?php

// No direct access
 
defined('_JEXEC') or die('Restricted access'); ?>
<div id="subHeader">
	<div class="login">
		<img alt="Sartu" src="<?php echo JURI::root();?>templates/lingolangtemplate/images/kandadoa.jpg">
		<div><a class="morea" href="index.php?option=com_user&view=login">Sartu zure kontuan</a></div>
	</div>
</div>
<div id="left">
	<div id="menu">
		<ul>
		<?php
			$color = 0;
			$text_color = "gorria";
			foreach($this->langs as $la){
				if ($color == 0) {
					$text_color = "gorria";
					$color++;
				}else if($color == 1){
					$text_color = "morea";
					$color++;
				}else if ($color == 2) {
					$text_color = "laranja";
					$color++;
				}else if ($color == 3) {
					$text_color = "urdina";
					$color++;
				}else if ($color == 4) {
					$text_color = "berdea";
					$color = 0;
				}
				if($this->c_lang == 'eu-ES'){

					if ($la->iso_code == $this->lang->iso_code) {
						print("<li class='selected'><a class='$text_color' href='index.php?option=com_hizkuntzak&task=mainMenu&hlang=$la->iso_code'>$la->name_eu</a></li><br/>");# code...
					} else{
						print("<li ><a class='$text_color' href='index.php?option=com_hizkuntzak&task=mainMenu&hlang=$la->iso_code'>$la->name_eu</a></li><br/>");
					}
				}else{
					if ($la->iso_code == $this->lang->iso_code) {
						print("<li class='selected'><a class='$text_color' href='index.php?option=com_hizkuntzak&task=mainMenu&hlang=$la->iso_code'>$la->name_es</a></li><br/>");
					} else{
						print("<li ><a class='$text_color' href='index.php?option=com_hizkuntzak&task=mainMenu&hlang=$la->iso_code'>$la->name_es</a></li><br/>");
					}
				}
			};
		?>
		</ul>
	</div>
</div>
<div id="content" style="width: 824px;">
	<div id="f1">
		<a class="menuLink" href="index.php?option=com_hizkuntzak&task=whoSpeaks">
			<div class="circle hizkuntza">
				<div class="circleText"><?php echo $this->rsc->menu_who; ?></div>
          	</div>
        </a>
        <a class="menuLink" href="index.php?option=com_hizkuntzak&task=showLangDetails">
        	<div class="circle hitzak">
        		<div class="circleText"><?php echo $this->rsc->menu_first; ?></div>
        	</div>
        </a>
        <a class="menuLink" href="index.php?option=com_hizkuntzak&task=qas">
        	<div class="circle qas">
        		<div class="circleText"><?php echo $this->rsc->menu_qa; ?></div>
        	</div>
        </a>
    </div>
    <div id="f2">
    	<a class="menuLink" href="index.php?option=com_hizkuntzak&task=numbers">
    		<div class="circle zenbakiak">
    			<div class="circleText"><?php echo $this->rsc->menu_numbers; ?></div>
    		</div>
    	</a>
    	<a class="menuLink" href="index.php?option=com_hizkuntzak&task=songs">
    		<div class="circle astegunak">
    			<div class="circleText"><?php echo $this->rsc->menu_songs; ?></div>
    		</div>
    	</a>
          <!--
          <div class="circle">
          	<img style="margin-left:12px; margin-top:3px;" src="templates/lingolangtemplate/images/hizkuntzariburuz.jpg"/>
          	<div class="circleText">
          		<?php 
	
					//if($this->lang->rscPath != null && $this->lang->rscPath != ""){
				?>
						<a href="<?php echo $this->lang->rscPath?>"><?php echo $this->rsc->menu_pack; ?></a>
				<?php 
					/*} else {
						echo $this->rsc->menu_pack; 
					}
					echo " eta ";
					if($this->lang->audioPath != null && $this->lang->audioPath != ""){*/
				?>
						<a href="<?php echo $this->lang->audioPath?>"><?php echo $this->rsc->menu_audio; ?></a>
				<?php /*
					} else {
						echo $this->rsc->menu_audio; 
					}
					*/
				?>
          	</div>
    	</div>
    	-->
	</div>
</div>